#include <iostream>
using namespace std;

int main()
{
	double w, h, C, S;

	cin >> w >> h;
	C = 2 * (w + h);
	S = w * h;
	cout << "Perimeter: " << C << endl;
	cout << "Area: " << S << endl;
	return 0;
}